<div class="form-group">
    <div class="label">
        <label>{fieldDesc}</label>
    </div>
    <div class="field">
 <?php
    if($modelObj->keyVal()==0){
        echo '<input type="text" class="input w20" placeholder="自动生成" value="" />';
    }else{
?>
<input type="text" class="input w20" name="{fieldName}" id="{fieldName}" value="<?php echo $v; ?>" />
<?php
    }
?>
						<div class="tips"></div>
					</div>
				</div>